import request from '@/utils/request'
/**
 * 获取角色列表
 * ***/
export function getRoleListApi(page, pagesize) {
  return request({
    method: 'get',
    url: '/sys/role',
    params: {
      page,
      pagesize
    }
  })
}
// 删除角色
export const deleteSettingApi = id => request.delete(`/sys/role/${id}`)
// 新增角色
export const postAddAPI = form => request.post('/sys/role', form)
// 修改回显数据
export const getpostAPI = id => request.get(`/sys/role/${id}`)
// 修改数据接口
export const AIYpostAPI = data => request.put(`/sys/role/${data.id}`, data)
// 获取公司信息接口
export const getuserInfoAPI = id => request.get(`/company/${id}`)
